import request from '@/utils/request'

const smsApi = {
  SmsList: '/admin/msgLog/list',       // 记录列表
  SmsTimingList: '/admin/msgLog/listByTiming',       // 记录列表
  

  SmsCurtailList: '/admin/smsCurtail/list',
  SmsCurtailAdd: '/admin/smsCurtail/add',
  SmsCurtailUpdate: '/admin/smsCurtail/update',

  // 产品
  ProductList: '/admin/product/list',
  ProductAdd: '/admin/product/add',
  ProductUpdate: '/admin/product/update',

  // 产品成本
  PlatformPriceList: '/admin/platformPrice/list',
  PlatformPriceAdd: '/admin/platformPrice/add',
  PlatformPriceUpdate: '/admin/platformPrice/update',

  // 平台
  PlatformAdd: '/admin/platform/add',
  PlatformList: '/admin/platform/list',
  PlatformUpdate: '/admin/platform/update',

  // 用户单价
  UserPriceList: '/admin/userPrice/list',
  UserPriceUpdate: '/admin/userPrice/update',

  
  
  
  // 短信模板
  SignatureAdd: '/admin/signature/add',
  SignatureList: '/admin/signature/list',
  SignatureUpdate: '/admin/signature/update',
  


  SmsBalanceLogList: '/admin/smsBalanceLog/list',
  UserUpdateSmsBalance: '/admin/user/updateSmsBalance',

  PlatformTemplateList: '/admin/template/list',
  PlatformTemplateAdd: '/admin/template/add',
  PlatformTemplateUpdate: '/admin/template/update',

  SmsCallbackLogList: '/admin/smsCallbackLog/info',
  

  

}

/**
 * @param parameter
 * @returns {*}
 */
export function getSmsList (parameter) {
  return request({
    url: smsApi.SmsList,
    method: 'post',
    data: parameter,
  })
}
export function getSmsTimingList (parameter) {
  return request({
    url: smsApi.SmsTimingList,
    method: 'post',
    data: parameter,
  })
}


export function getSmsCurtailList (parameter) {
  return request({
    url: smsApi.SmsCurtailList,
    method: 'post',
    data: parameter,
  })
}
export function getSmsCurtailAdd (parameter) {
  return request({
    url: smsApi.SmsCurtailAdd,
    method: 'post',
    data: parameter,
  })
}
export function getSmsCurtailUpdate (parameter) {
  return request({
    url: smsApi.SmsCurtailUpdate,
    method: 'post',
    data: parameter,
  })
}
export function getSmsBalanceLogList (parameter) {
  return request({
    url: smsApi.SmsBalanceLogList,
    method: 'post',
    data: parameter,
  })
}
export function getUserUpdateSmsBalance (parameter) {
  return request({
    url: smsApi.UserUpdateSmsBalance,
    method: 'post',
    data: parameter,
  })
}

export function getPlatformTemplateList (parameter) {
  return request({
    url: smsApi.PlatformTemplateList,
    method: 'post',
    data: parameter,
  })
}

export function platformTemplateAdd (parameter) {
  return request({
    url: smsApi.PlatformTemplateAdd,
    method: 'post',
    data: parameter,
  })
}
export function platformTemplateUpdate (parameter) {
  return request({
    url: smsApi.PlatformTemplateUpdate,
    method: 'post',
    data: parameter,
  })
}

export function getProductList (parameter) {
  return request({
    url: smsApi.ProductList,
    method: 'post',
    data: parameter,
  })
}
export function productAdd (parameter) {
  return request({
    url: smsApi.ProductAdd,
    method: 'post',
    data: parameter,
  })
}
export function productUpdate (parameter) {
  return request({
    url: smsApi.ProductUpdate,
    method: 'post',
    data: parameter,
  })
}

export function getPlatformPriceList (parameter) {
  return request({
    url: smsApi.PlatformPriceList,
    method: 'post',
    data: parameter,
  })
}
export function platformPriceAdd (parameter) {
  return request({
    url: smsApi.PlatformPriceAdd,
    method: 'post',
    data: parameter,
  })
}
export function platformPriceUpdate (parameter) {
  return request({
    url: smsApi.PlatformPriceUpdate,
    method: 'post',
    data: parameter,
  })
}


export function getPlatformList (parameter) {
  return request({
    url: smsApi.PlatformList,
    method: 'post',
    data: parameter,
  })
}
export function platformAdd (parameter) {
  return request({
    url: smsApi.PlatformAdd,
    method: 'post',
    data: parameter,
  })
}
export function platformUpdate (parameter) {
  return request({
    url: smsApi.PlatformUpdate,
    method: 'post',
    data: parameter,
  })
}


export function userPriceList (parameter) {
  return request({
    url: smsApi.UserPriceList,
    method: 'post',
    data: parameter,
  })
}
export function userPriceUpdate (parameter) {
  return request({
    url: smsApi.UserPriceUpdate,
    method: 'post',
    data: parameter,
  })
}

export function signatureAdd (parameter) {
  return request({
    url: smsApi.SignatureAdd,
    method: 'post',
    data: parameter,
  })
}
export function signatureList (parameter) {
  return request({
    url: smsApi.SignatureList,
    method: 'post',
    data: parameter,
  })
}

export function signatureUpdate (parameter) {
  return request({
    url: smsApi.SignatureUpdate,
    method: 'post',
    data: parameter,
  })
}

export function smsCallbackLogList (parameter) {
  return request({
    url: smsApi.SmsCallbackLogList,
    method: 'post',
    data: parameter,
  })
}







